>surface
/ house + lucky block
group(type=structure,ID=house;type=block,ID=lucky:electronic_lucky_block,tileEntity=(Luck=20),posX=#bPosX+1,posZ=#bPosZ-1)@chance=600

/ ==== unlucky ruins ====
/ bottom layer
group(type=block,ID=stonebrick,posY=#bPosY-1,posOffset=#circleOffset(#rand(0,3)),amount=#rand(20,30); \
type=block,ID=netherrack,posY=#bPosY-1,posOffset=#circleOffset(#rand(0,3)),amount=#rand(20,30); \
type=block,ID=obsidian,posY=#bPosY-1,posOffset=#circleOffset(#rand(0,3)),amount=#rand(10,15); \
/ top layer
type=block,ID=#randList(infested,cracked,mossy)_stone_bricks,posOffset=#circleOffset(#rand(0,2)),amount=#rand(2,5); \
type=block,ID=netherrack,posOffset=#circleOffset(#rand(0,2)),amount=#rand(2,5); \
type=block,ID=obsidian,posOffset=#circleOffset(#rand(0,2)),amount=#rand(0,2); \
/ pink lucky block
type=block,ID=lucky:electronic_lucky_block,tileEntity=(Luck=-75))@chance=117

/ ==== lucky ruins ====
/ bottom layer
group(type=block,ID=white_glazed_terracotta,posY=#bPosY-1,posOffset=#circleOffset(#rand(0,3)),amount=#rand(20,30); \
type=block,ID=snow_block,posY=#bPosY-1,posOffset=#circleOffset(#rand(0,3)),amount=#rand(20,30); \
type=block,ID=bamboo_mosaic,posY=#bPosY-1,posOffset=#circleOffset(#rand(0,3)),amount=#rand(10,15); \
/ top layer
type=block,ID=white_glazed_terracotta,posOffset=#circleOffset(#rand(0,2)),amount=#rand(2,5); \
type=block,ID=snow_block,posOffset=#circleOffset(#rand(0,2)),amount=#rand(2,5); \
type=block,ID=bamboo_mosaic,posOffset=#circleOffset(#rand(0,2)),amount=#rand(0,2); \
/ pink lucky block
type=block,ID=lucky:electronic_lucky_block,tileEntity=(Luck=75))@chance=29